import request from '@/utils/request'

// 查询委托列表
export function listCommission(query) {
  return request({
    url: '/system/commission/list',
    method: 'get',
    params: query
  })
}

// 查询委托详细
export function getCommission(id) {
  return request({
    url: '/system/commission/' + id,
    method: 'get'
  })
}

// 新增委托
export function addCommission(data) {
  return request({
    url: '/system/commission',
    method: 'post',
    data: data
  })
}

// 修改委托
export function updateCommission(data) {
  return request({
    url: '/system/commission',
    method: 'put',
    data: data
  })
}

// 删除委托
export function delCommission(id) {
  return request({
    url: '/system/commission/' + id,
    method: 'delete'
  })
}
// 删除委托
export function logicDelCommission(id) {
  return request({
    url: '/system/commission/' + id,
    method: 'delete'
  })
}

// 导出委托
export function exportCommission(query) {
  return request({
    url: '/system/commission/export',
    method: 'get',
    params: query
  })
}
